package br.com.iswe.gwt.manter.client;

import java.util.Map;


import com.google.gwt.user.client.rpc.AsyncCallback;

public class LoginService extends BaseService {

	private static LoginService instance = null;
	
	public static LoginService getInstance(String controllerName){
		if(instance == null){
			instance = new LoginService(controllerName);
		}
		return instance;
	}
	
	protected LoginService(String controllerName) {
		super(controllerName);
	}

	public void efetuarLogin(Map bean, AsyncCallback callback) {
		manterServiceAsync.efetuarLogin(controllerName, bean, getCallBack(callback));
	}

	public void efetuarLogout(AsyncCallback callback) {
		manterServiceAsync.efetuarLogout(controllerName, getCallBack(callback));
	}
	
}
